//------------------------------------------------------------------------------
// Copyright (c) 2012 by Silicon Laboratories. 
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Silicon Laboratories End User 
// License Agreement which accompanies this distribution, and is available at
// http://developer.silabs.com/legal/version/v10/License_Agreement_v10.htm
// Original content and implementation provided by Silicon Laboratories.
//------------------------------------------------------------------------------

//==============================================================================
// WARNING:
//
// This file is auto-generated by AppBuilder and should not be modified.
// Any hand modifications will be lost if the project is regenerated.
//==============================================================================

#include "gCAPSENSE0.h"
#include "gCLKCTRL.h"
#include "gCPU.h"
#include "gFLASHCTRL0.h"
#include "gPB.h"

#include <si32_device.h>

//==============================================================================
//MODE FUNCTIONS
//==============================================================================
void enter_default_mode_from_reset(void)
{
  // Setup clock gates
  CLKCTRL_setup_default_mode_clock_gates();

  // Setup ports
  pb_enter_default_mode_from_reset();

  // Initialize clock control
  SystemCoreClock = 20000000;
  cpu_update();
  CLKCTRL_enter_default_mode_from_reset();

  // Initialize peripherals
  cpu_update();
  CAPSENSE0_enter_default_mode_from_reset();
  FLASHCTRL0_enter_default_mode_from_reset();
}

/*
//==============================================================================
void gModes_enter_my_default_mode()
{
  // SETUP CPU
  gCpu_enter_default_config();

  // SETUP Ports
  gPB_enter_default_config();

  // SETUP CAPSENSE
  gCAPSENSE0_enter_default_config();
}

//------------------------------------------------------------------------------
void gModes_enter_my_off_mode()
{
  // SETUP CAPSENSE
  gCAPSENSE0_enter_off_config();

  // SETUP Ports
  gPB_enter_off_config();
}
*/

//---eof------------------------------------------------------------------------
